package com.wxapp.market.service.controller.client;

import com.wxapp.common.constant.base.IBaseController;
import com.wxapp.common.constant.pojo.vm.ResultVm;
import com.wxapp.market.api.pojo.vm.ad.PAdDetailVm;
import com.wxapp.market.service.service.AdService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.*;

@RestController
@Tag(name = "推送广告管理")
@RequestMapping("/client/ad")
@RequiredArgsConstructor
public class AdClientController extends IBaseController {
    private final AdService adService;

    @GetMapping("/getList/{position}")
    @Operation(summary ="添加广告文件")
    public ResultVm<PAdDetailVm> getList(@PathVariable String position) {
        return adService.getList(position);
    }
}
